import { Card } from "../class/Card";
import { Context } from "../class/Context";
import { CardFactory } from "../factory/CardFactory";

/**
 * 一牌三连
 */
export class threeCard extends Card {
    static cardName = "一牌三连"
    static description = "额外获得三张牌."
    public outHook(context: Context): void {
        for (let i = 0; i < 3; i++) {
            const CardSubClass = CardFactory.getByName();
            this.masterRole.addCard(new CardSubClass(this.masterRole))
        }
    }
}